package com.site.wisdom_construction.service.personnelModule;

import com.site.wisdom_construction.dao.personnelModule.EducationProductionResponsibilityRecordDao;
import com.site.wisdom_construction.entity.personnelModule.EducationProductionResponsibilityRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/4/20
 * @Description
 */
@Service
public class EducationProductionResponsibilityRecordService implements EducationProductionResponsibilityRecordDao {
    @Autowired
    private EducationProductionResponsibilityRecordDao educationProductionResponsibilityRecordDao;

    @Override
    public int insertEducationProductionResponsibilityRecord(Map map) {
        return educationProductionResponsibilityRecordDao.insertEducationProductionResponsibilityRecord(map);
    }

    @Override
    public int deleteEducationProductionResponsibilityRecord(Map map) {
        return educationProductionResponsibilityRecordDao.deleteEducationProductionResponsibilityRecord(map);
    }

    @Override
    public int updateEducationProductionResponsibilityRecord(Map map) {
        return educationProductionResponsibilityRecordDao.updateEducationProductionResponsibilityRecord(map);
    }

    @Override
    public List<EducationProductionResponsibilityRecord> findEducationProductionResponsibilityRecordByPage(Map map) {
        return educationProductionResponsibilityRecordDao.findEducationProductionResponsibilityRecordByPage(map);
    }

    @Override
    public long Total(Map map) {
        return educationProductionResponsibilityRecordDao.Total(map);
    }

    @Override
    public EducationProductionResponsibilityRecord findEducationProductionResponsibilityRecordById(Map map) {
        return educationProductionResponsibilityRecordDao.findEducationProductionResponsibilityRecordById(map);
    }

    @Override
    public List<EducationProductionResponsibilityRecord> findEducationProductionResponsibilityRecordByWorkerCard(Map map) {
        return educationProductionResponsibilityRecordDao.findEducationProductionResponsibilityRecordByWorkerCard(map);
    }

    @Override
    public List<EducationProductionResponsibilityRecord> findEducationProductionResponsibilityRecordByManagerialId(Map map) {
        return educationProductionResponsibilityRecordDao.findEducationProductionResponsibilityRecordByManagerialId(map);
    }

    @Override
    public long TotalByManagerialId(Map map) {
        return educationProductionResponsibilityRecordDao.TotalByManagerialId(map);
    }
}
